package com.nulldev.util.crypto.encryptAPI;

import com.nulldev.util.crypto.encryptAPI.manage.Encryptor;

public class LiteString extends Encryptor {

	@Override
	public String getEncryptorID() {
		return "encryptAPI.LiteString";
	}

	@Override
	public String[] supportedEncryptors() {
		return new String[] {"LiteString", "COMPRESSION"};
	}

	@Override
	public String encrypt(String text, String password) {
		return com.nulldev.util.crypto.encryptAPI.litestring.LiteString.zipUTF8_Base64(text);
	}

	@Override
	public String decrypt(String text, String password) {
		return com.nulldev.util.crypto.encryptAPI.litestring.LiteString.unzipBase64(text);
	}

	@Override
	public byte[] encryptBytes(byte[] data, String password) {
		return com.nulldev.util.crypto.encryptAPI.litestring.LiteString.zipUTF8(data);
	}

	@Override
	public byte[] decryptBytes(byte[] data, String password) {
		return com.nulldev.util.crypto.encryptAPI.litestring.LiteString.unzipB(data);
	}

}
